﻿cmake_minimum_required(VERSION 3.2)


set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)

include_directories(${PROJECT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/Algorithm)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
include_directories(${PROJECT_SOURCE_DIR}/lib)

file(GLOB_RECURSE SRC_SOURCE_NODE ${CMAKE_CURRENT_SOURCE_DIR}/Reader/*.cpp) #添加仿真输入数据适配器源文件
file(GLOB_RECURSE SRC_SOURCE_RECORDER ${CMAKE_CURRENT_SOURCE_DIR}/Recorder/*.cpp) #添加仿真数据记录适配器源文件

set (SRC_SOURCE_SIM ${CMAKE_CURRENT_SOURCE_DIR}/simEnv.cpp)

add_library(SimAdaptor SHARED ${SRC_SOURCE_SIM} ${SRC_SOURCE_RECORDER} ${SRC_SOURCE_NODE})
target_link_libraries(SimAdaptor LogSimDrive Algorithm)
